/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package billing;

import java.util.HashMap;

/**
 *
 * @author apple
 */
public class OrdersModel extends My_Model{
    
    String id;
    String area_id;
    String modified_date;
    String deleted;
    String created_date;
    
    public OrdersModel() throws Exception{
        tableName = "Orders";
    }

    @Override
    public My_Model to_model(HashMap<String, String> data) throws Exception {
        OrdersModel model = new OrdersModel();
        model.id = (data.get("id") != null ) ? data.get("id") : "";
        model.area_id = (data.get("area_id") != null ) ? data.get("area_id") : "";
        model.modified_date = (data.get("modified_date") != null ) ? data.get("modified_date") : "";
        model.deleted = (data.get("deleted") != null ) ? data.get("deleted") : "";
        model.created_date = (data.get("created_date") != null ) ? data.get("created_date") : "";
        
        return model;
    }
    
}
